package com.xt.purchasingsystem.controller;


import com.xt.purchasingsystem.dto.BuyerPlanDetailDto;
import com.xt.purchasingsystem.service.BuyerPlanDetailService;
import com.xt.purchasingsystem.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 采购计划明细所有接口
 * </p>
 *
 * @author yhp
 * @since 2020-05-31
 */
@RestController
@RequestMapping("/buyerPlanDetail")
public class BuyerPlanDetailController {

    @Autowired
    private BuyerPlanDetailService buyerPlanDetailService;

    /**
     * 多条件分页查询所有未生成采购执行单的采购计划明细及其产品推荐供应商
     * @param buyerPlanDetailDto
     * @return
     */
    @PostMapping
    public Result getAllNOExecuteByPage(@RequestBody BuyerPlanDetailDto buyerPlanDetailDto) {
        return buyerPlanDetailService.getAllNOExecuteByPage(buyerPlanDetailDto);
    }

}

